<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('file_urls', function (Blueprint $table) {
            $table->id();
            $table->string('domain')->comment('域名');
            $table->string('url')->comment('资源地址');
            $table->tinyInteger('module')->default(0)->comment('模块 1语音测评 2趣味互动-看动画 3趣味互动-歌曲歌谣 4词汇积累-背单词 5词汇积累-学单词 6磨耳朵 7趣味闯关 8有声拓展');
            $table->tinyInteger('is_category')->default(0)->comment('是否开启目录 0关闭 1开启');
            $table->tinyInteger('is_type')->default(0)->comment('是否开启类型 0关闭 1开启（图片images 音频audio 视频video）');
            $table->string('sign')->nullable()->comment('模块标识');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('file_urls');
    }
};
